﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/User/User.master" AutoEventWireup="true" CodeFile="KetQuaTimKiemTheoNguoiDung.aspx.cs" Inherits="QLVB_User_KetQuaTimKiemTheoNguoiDung" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style27
        {
            width: 193px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td>
                <asp:Label ID="lblTimKiem" runat="server" Text="Nhập số văn bản cần tìm:"></asp:Label>
                <asp:TextBox ID="txtSoVanBanCanTim" runat="server"></asp:TextBox>
                <asp:Button ID="btnTimKiem" runat="server" Text="Tìm kiếm" Width="100px" 
                    onclick="btnTimKiem_Click" />
            </td>
        </tr>
        
        <tr>
            <td>
                <asp:CheckBox ID="chkChonTatCa_" runat="server" Text="Chọn tất cả" 
                    AutoPostBack="True" oncheckedchanged="chkChonTatCa__CheckedChanged"/>
            </td>
        </tr>

        <tr>           
            <td>
                <asp:GridView ID="gvKetQuaTimKiem" runat="server" AutoGenerateColumns="False" 
                    Width="708px" AllowPaging="True" DataKeyNames="MaVanBan" 
                    onpageindexchanging="gvKetQuaTimKiem_PageIndexChanging" 
                    onrowdatabound="gvKetQuaTimKiem_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaVanBan" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="718px: ;">
                                    <tr>
                                        <td width="150px" style="200px;">
                                            <asp:Label ID="lblSoVB" runat="server" Text="Số văn bản:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:Label ID="lblSoVanBan" runat="server" Text='<%# Eval("SoVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="150px" style="200px: ;">
                                            <asp:Label ID="lblTenVB" runat="server" Text="Tên văn bản:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:Label ID="lblTenVanBan" runat="server" Text='<%# Eval("TenVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="150px" style="200px: ;">
                                            <asp:Label ID="lblMaLoaiVB" runat="server" Text="Loại văn bản:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:Label ID="lblMaLoaiVanBan" runat="server" 
                                                Text='<%# Eval("MaLoaiVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="150px" style="200px: ;">
                                            <asp:Label ID="lblMaNguoiSoanThaoVB" runat="server" Text="Người cập nhật:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:Label ID="lblMaNguoiSoanThaoVanBan" runat="server" 
                                                Text='<%# Eval("MaNguoiSoanThao") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="150px" style="200px: ;">
                                            <asp:Label ID="lblNgayKiemSoatVB" runat="server" Text="Ngày phát hành:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:Label ID="lblNgayKiemSoatVanBan" runat="server" 
                                                Text='<%# Eval("NgayKiemSoat") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="150px" style="200px: ;">
                                            <asp:Label ID="lblNoiDungVB" runat="server" Text="Nội dung văn bản:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:Label ID="lblNoiDungVanBan" runat="server" 
                                                Text='<%# Eval("NoiDungVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="150px" style="200px: ;">
                                            <asp:Label ID="lblButPheGiamDoc_" runat="server" Text="Bút phê giám đốc:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:Label ID="lblButPheGiamDoc" runat="server" 
                                                Text='<%# Eval("NoiDungButPhe") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="150px" style="200px: ;">
                                            <asp:Label ID="lblNoiNhanVB" runat="server" Text="Nơi nhận văn bản:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:Label ID="lblNoiNhan" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="150px" style="200px: ;">
                                            <asp:Label ID="lblFileDinhKem" runat="server" Text="File đính  kèm:"></asp:Label>
                                        </td>
                                        <td class="style27">
                                            <asp:HyperLink ID="hlnkTenVanBan" runat="server"
                                                NavigateUrl='<%# "../VanBanLuuTru" + "/" + Eval("TenFile") %>' 
                                                Text='<%# Eval("TenFile") %>'></asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
            <asp:Label ID="lblNoiNhanVanBan0" runat="server" Text="Nơi nhận văn bản:"></asp:Label>
            <asp:DropDownList ID="drplstMaPhongNhanVanBan" runat="server" AutoPostBack="True" 
                onselectedindexchanged="drplstPhongNhanVanBan_SelectedIndexChanged" 
                Width="300px" Enabled="False">
            </asp:DropDownList>
                <br />
            <asp:CheckBox ID="chkChonTatCa" runat="server" 
                oncheckedchanged="chkChonTatCa_CheckedChanged" Text="Chọn tất cả" 
                AutoPostBack="True" Enabled="False" />
            <asp:GridView ID="gvNoiNhanVanBan" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" DataKeyNames="MaNguoiDung" Width="99%" 
                onpageindexchanging="gvNoiNhanVanBan_PageIndexChanging">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <table style="width: 100%;">
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="chkMaNguoiDung" runat="server" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblTenNguoiDung" runat="server" 
                                            Text='<%# Eval("TenNguoiDung") %>'></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
            <asp:Button ID="btnChuyenVanBan" runat="server" Text="Chuyển văn bản" 
                Visible="False" onclick="btnChuyenVanBan_Click" />
            <asp:Button ID="btnDongY" runat="server" Text="Đồng ý" Width="100px" 
                onclick="btnDongY_Click" />
            <asp:Button ID="btnDong" runat="server" Text="Đóng" Width="100px" 
                onclick="btnDong_Click" />
            </td>
        </tr>
    </table>
</asp:Content>

